UE.commands['catchuploadimages'] = {
    execCommand : function (cmd, opt){
		var separator=window.UEDITOR_CONFIG.img_separator;
		var images = this.document.getElementsByTagName("img"); 
		var images_url="";
	    for(var i=0,ci;ci =images[i++];){
		    var src=ci.getAttribute("src");
	        if(src.indexOf("http://")!=0){
	            images_url+=src.substring(window.UEDITOR_CONFIG.imagePath.length,src.length)+separator;
	        }
	        else
	        {
	        	//ie 下src是全路径
	        	var tmp = window.location.pathname;
			    var URL = window.UEDITOR_HOME_URL||tmp.substr(0,tmp.lastIndexOf("\/")+1).replace("_examples/","").replace("website/","");
			    var root=URL; 
				var per_url = location.protocol + '//' + location.host + root;
				if(src.indexOf(per_url)==0)
				{
					images_url+=src.substring(per_url.length-1)+separator;
				}
	        }
	    }
	    return images_url;
    }
};